<!DOCTYPE HTML>
<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <title>青藤CRM缴费系统</title>
    <meta name="keywords" content="智辉CRM">
    <meta name="description" content="智辉CRM">
    <link rel="Bookmark" href="favicon.ico">
    <link rel="Shortcut Icon" href="favicon.ico" />
    <!--[if lt IE 9]> 
    <script type="text/javascript" src="Lib/html5.js"></script>
    <script type="text/javascript" src="Lib/respond.min.js"></script>
    <script type="text/javascript" src="Lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="__PUBLIC__/css/H-ui.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
    <!--自己的样式-->
    <link href="Tpl/Assistant/common/expense/Center_index.css" rel="stylesheet" type="text/css">
    <!--[if IE 6]> 
    <script type="text/javascript" src="Lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('.pngfix,.icon');</script> 
    <![endif]-->
</head>

<body>
    <div class="container">
      
               <form class="form-horizontal" id="form_name" method="post" action="" style="margin-top: 10px;">
                   <input type="hidden" name="id" value="{$id}" />
                  <div class="row ">
                      <label for="" class="col-4 control-label">当前密码：</label>
                     <input type="password" name="old_password" class="form-control col-8 input-text" id="" placeholder="" datatype="*" errormsg="请输入当前密码！">
                      
                   </div>
                   
                   <div class="row ">
                      <label for="" class="col-4 control-label">输入新密码：</label>
                    
                    <input type="password" class="form-control col-8 input-text" id="" placeholder="" name="password" datatype="*5-36" errormsg="密码最少5个字符最多36个字符！">
                      
                   </div>
                
                   
                
                <div class="row ">
                    <label for="" class="col-4 control-label">重复新密码：</label>
                    
                    <input type="password" class="form-control col-8 input-text" name="cpassword" id="" placeholder="" datatype="*5-36" recheck="password" errormsg="您两次输入的账号密码不一致！">
                </div>
                

                <div class="row ">
                    <div class="col-12" style="text-align: center;">
                        <button class="btn btn-success-outline radius" type="submit" style="margin-top: 20px;width: 50%">提交</button>
                    </div>
                </div>
               </form>
               
               
              
           
    </div>
    
    
    <script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script>
    
    <script src="__PUBLIC__/lib/layer/2.1/layer.js"></script>
    <script src="Tpl/Assistant/common/expense/layerui.js"></script>
    <script src="__PUBLIC__/Validform/5.3.2/Validform.min.js"></script>
    <script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
    <script>
        $(function(){
            $("#form_name").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            beforeSubmit:function(curform){
            
                curform.ajaxSubmit({
                type:'POST',
                url:'{:U('Assistant/Center/editPassword')}',
                success:function(data){
                  console.log(status);
                  if(data.status==true){
                      layer.msg("修改成功");
                      var index = parent.layer.getFrameIndex(window.name);
                      setTimeout(function(){
                           parent.layer.close(index);
                      },1000);
                      parent.location.reload();

                  }else{
                    layer.msg(data.sign);
                  }
                  }
                });
             return false; 
            }
          });
        });
    </script>
</body>

</html>

